home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
-
- <xsl:output method="html"
- doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
-
- $INCLUDE(commonvar.inc)$
-
- <fd:capabilities showExcerpts="true" toggleExcerpts="true" collapsePosts="false" itemGrouping="false" />
- <xsl:variable name="feed-type" select="newspaper/channel/@feedType"/>
-
- <xsl:template match="newspaper">
- <html>
- <head>
- <title>
- <xsl:choose>
- <xsl:when test="title"><xsl:value-of select="title" disable-output-escaping="yes"/></xsl:when>
- <xsl:otherwise>$LANG_CONST(S_SearchResults)$</xsl:otherwise>
- </xsl:choose>
- </title>
-
- $INCLUDE(metatrans.inc)$
-
- <style type="text/css">
- $INCLUDE(commonstyles.css)$
- $INCLUDE(surfer.css)$
-
- div#newspapertitle, #searchagain { /*font-weight: bold;*/ }
-
- div.fdnewsitem {
- padding: 10px;
- text-align: left;
- border: 6px solid white;
- }
- #fdfocusedpost { border-color: $COLOR-FOCUS-HIGHLIGHT$; }
-
- div.fdnewsitem, #fdfocusedpost, div.description { min-height: 100%; }
- div.newsitemtitle { font-size: $FONT-SIZE-NEWSPAPER$; margin-bottom: 8px; font-weight: bold; }
-
- div.newsitemsep {
- border-bottom: 1px dotted $COLOR-GROUP-HEADER-BORDER$;
- }
- div.dateline {
- margin: 4px 0;
- color: gray;
- font-style: italic;
- vertical-align: middle;
- }
-
- #searchagain {
- float: right;
- font-size: small;
- margin-top: 4px;
- margin-right: 22px;
- }
- #searchagain a { color: $COLOR-PAGEHEAD-FONT$; }
-
- /*.even { background-color: #F1F5FC; }*/
- span.sep { margin: 0 5px; }
- .hidden { display: none; }
-
- img.toggle {
- padding: 2px 2px 2px 0;
- margin-right: 2px;
- vertical-align: middle;
- }
- div.postenclosure { font-weight: bold; margin: 8px 0; vertical-align: middle; }
- div.postenclosure a { text-decoration: none; }
- </style>
- </head>
- <body>
- <xsl:variable name="folderId" select="@folderId"/>
-
- <div id="pagehead">
- <div id="searchagain">
- <a href="fdaction:?action=searchsubscriptions&showdialog=1">$LANG_CONST(S_SearchAgain)$...</a>
- </div>
- <div id="newspapertitle">
- <img src="$IMAGEDIR$search-lg.png" align="absmiddle" />
- <xsl:value-of select="title" disable-output-escaping="yes"/>
- </div>
- </div>
-
- <div id="container">
- <div class="groupheader">
- <div class="groupcaption">
- <xsl:choose>
- <xsl:when test="pageInfo and pageInfo/@numTotalPages>1"><xsl:value-of select="pageInfo/@numTotalPosts"/> $LANG_CONST(S_NewsLblMatchingItems)$</xsl:when>
- <xsl:otherwise><xsl:value-of select="$item-count"/> $LANG_CONST(S_NewsLblMatchingItems)$</xsl:otherwise>
- </xsl:choose>
- </div>
- </div>
-
- <xsl:for-each select="channel/item">
- <xsl:sort select="@sortIndex" data-type="number"/>
- <xsl:variable name="feedId" select="@feedId"/>
- <xsl:variable name="postId" select="@postId"/>
-
- <xsl:variable name="item-class">
- <xsl:choose>
- <xsl:when test="position() mod 2 = 1">fdnewsitem odd</xsl:when>
- <xsl:otherwise>fdnewsitem even</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <div class="{$item-class}" name="{$feedId}:{$postId}">
- <div class="newsitemtitle">
- <xsl:if test="postImageUrl and excerpt and $item-count > 1">
- <a id="{$postId}_fdpostimg" href="{postImageUrl}" title="{postImageUrl}">
- <img class="fdpostimg" src="{postImageUrl}"/>
- </a>
- </xsl:if>
- <!-- toggle excerpt -->
- <a class="icon" href="fdaction:?action=toggleexcerpt&postid={$postId}&feedid={$feedId}">
- <img class="toggle icon" src="$IMAGEDIR$arrowright2.gif" id="{$postId}_img_toggle_excerpt" align="absmiddle" />
- </a>
- <!-- use unread style for all search results -->
- <a id="{$postId}_title" class="unread" href="fdaction:?action=gotopost&feedid={$feedId}&postId={$postId}" title="$LANG_CONST(S_NewsHintGotoPost)$">
- <xsl:value-of select="title" disable-output-escaping="yes"/>
- </a>
- <xsl:if test="link">
- <a href="fdaction:?action=gotopostlink&newtab=1&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintOpenInNewTab)$">
- <img style="margin-left: 4px;" src="$IMAGEDIR$linknew.gif" align="top" />
- </a>
- </xsl:if>
- </div>
- <div class="dateline">
- <!-- toggle flag - this will change the flag in the source feed -->
- <a class="icon" href="fdaction:?action=toggleflag&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintToggleFlag)$">
- <xsl:choose>
- <xsl:when test="state/@flagged!=0">
- <img id="{$postId}_img_flag" src="$IMAGEDIR$star-on.png" class="icon" align="absmiddle"/>
- </xsl:when>
- <xsl:otherwise>
- <img id="{$postId}_img_flag" src="$IMAGEDIR$star-off.png" class="icon" align="absmiddle"/>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- <!-- tags -->
- <a class="icon" href="fdaction:?action=editposttags&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintEditTags)$">
- <img src="$IMAGEDIR$tag.png" class="icon" align="absmiddle" />
- </a>
- <a class="icon" href="fdaction:?action=showtagmenu&feedid={$feedId}&postid={$postId}" title="$LANG_CONST(S_NewsHintTagMenu)$">
- <img src="$IMAGEDIR$tagmenu.gif" class="icon" align="absmiddle" />
- </a>
- <span class="taglist" id="{$postId}_taglist">
- <xsl:if test="taglist">
- <xsl:value-of select="taglist" disable-output-escaping="yes"/>
- </xsl:if>
- </span>
- <span class="sep">|</span>
- <xsl:value-of select="dateDisplay"/>
- <span class="sep">|</span>
- <xsl:if test="source">
- <a href="fdaction:?action=gotofeedlink&feedId={@feedId}"><xsl:value-of select="source"/></a>
- <span class="sep">|</span>
- </xsl:if>
- </div>
- $INCLUDE(postenclosure.inc)$
- <div class="newsitemcontent">
- <xsl:choose>
- <!-- show excerpts when more than one item showing -->
- <xsl:when test="excerpt and $item-count > 1">
- <!-- note that the full description is inserted dynamically by FeedDemon when the excerpt is expanded -->
- <span id="{$postId}_description" class="collapsed"><xsl:value-of select="excerpt" disable-output-escaping="yes"/></span>
- <a class="more" title="$LANG_CONST(S_NewsHintExpand)$" href="fdaction:?action=toggleexcerpt&postid={$postId}&feedid={$feedId}" id="{$postId}_expand_link">$LANG_CONST(S_NewsLblExpand)$</a>
- </xsl:when>
- <!-- otherwise show the full description -->
- <xsl:otherwise>
- <xsl:value-of select="description" disable-output-escaping="yes"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </div>
- <div class="newsitemsep"></div>
- </xsl:for-each>
- </div>
- </body>
- </html>
- </xsl:template>
-
- </xsl:stylesheet>